/* Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

package com.riq.entity;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Alert implements HasPrimaryKey<String>, Serializable {
	
	private static final long serialVersionUID = 1L;
	
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
	      return null;
	    }
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private Long deptId;
	
	@Persistent
	private Long timeStamp; 
	
	@Persistent
	private String alertMsgString;
	
	@Persistent
	private String fromEmailAddr;
	
	@Persistent
	private String status;
	
	@Persistent
	private String rawMessage;
	
	@Persistent
	private String lat;
	  
	@Persistent
	private String lng;
	
	@Persistent
	private String messageId;
	
	public Alert (Long deptId, Long timeStamp, String alertMsgString, 
			      String fromEmailAddr, String status, String rawMessage,
				  String lat, String lng, String messageId) {
	    
	this.deptId = deptId;
	this.timeStamp = timeStamp;
	this.alertMsgString = alertMsgString;
	this.fromEmailAddr = fromEmailAddr;
	this.status = status;
	this.rawMessage = rawMessage;
	this.lat = lat;
	this.lng = lng;
	this.messageId = messageId;
	
	}
	
// GETS
	
	public Long getid() {
		return id;
	}
	
	public Long getdeptId() {
		return deptId;
	}
	
	public Long gettimeStamp() {
		return timeStamp;
	}

	public String getalertMsgString() {
		return alertMsgString;
	}

	public String getfromEmailAddr() {
		return fromEmailAddr;
	}

	public String getstatus() {
		return status;
	}

	public String getrawMessage() {
		return rawMessage;
	}
	
	public String getlat() {
        return lat;
    }

	public String getlng() {
	    return lng;
	}
	
    public String getmessageId() {
        return messageId;
    }
	
//SETS
	
	public Long setdeptId() {
		return deptId;
	}
	
	public void settimeStamp(Long timeStamp) {
		this.timeStamp = timeStamp;
	}
	
	public void setalertMsgString(String alertMsgString) {
		this.alertMsgString = alertMsgString;
	}
	
	public void setfromEmailAddr(String fromEmailAddr) {
		this.fromEmailAddr = fromEmailAddr;
	}
	
	public void setstatus(String status) {
		this.status = status;
	}
	
	public void setrawMessage(String rawMessage) {
		this.rawMessage = rawMessage;
	}
	
    public void setlat(String lat) {
        this.lat = lat;
    }
  
    public void setlng(String lng) {
        this.lng = lng;
    }
	  
    public void setmessageId(String messageId) {
        this.messageId = messageId;
    }

}
